////////////////////////////////////////////////////////////////////////////////
//                                                                            //
//                           BailterRay                                       //
//                    Pip Robbins & Zhao Zhang                                //
//                                                                            //
////////////////////////////////////////////////////////////////////////////////
class BailterRayMessage extends UTCarriedObjectMessage;

static function bool ShouldBeRemoved(UTQueuedAnnouncement MyAnnouncement, class<UTLocalMessage> NewAnnouncementClass, int NewMessageIndex)
{
	if ( NewAnnouncementClass == class'UTTeamScoreMessage' )
	{
		return true;
	}

	return super.ShouldBeRemoved(MyAnnouncement, NewAnnouncementClass, NewMessageIndex);
}

static simulated function ClientReceive(
		PlayerController P,
		optional int Switch,
		optional PlayerReplicationInfo RelatedPRI_1,
		optional PlayerReplicationInfo RelatedPRI_2,
		optional Object OptionalObject)
{
    if(Switch == 13 || Switch == 11)
    //BailterRayPlayerController(P).ShowInfo(2);
    if ( (Switch > 0) && !class'Engine'.static.IsSplitScreen() )
	{
		UTPlayerController(P).PlayAnnouncement(default.class, Switch);
		UTPlayerController(P).PulseTeamColor();
	}
	//super.ClientReceive(P, Switch, RelatedPRI_1, RelatedPRI_2, OptionalObject);

}


defaultproperties
{
   ReturnBlue=""
   //ReturnRed="returned the red flag!"
   ReturnedBlue=""
   //ReturnedRed="The red flag was returned!"
   CaptureBlue=""
   //CaptureRed="captured the red flag!"
   DroppedBlue=""
   //DroppedRed="dropped the red flag!"
   HasBlue=""
   FontSize=1
   Name="Default__BRMessage"
   ObjectArchetype=UTCarriedObjectMessage'UTGame.Default__UTCarriedObjectMessage'
}
